﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]} - powered by sdcms</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user_base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user_bind.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/js/mobile.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script>$(function(){$("#user_menu_05").addClass("hover");})</script>
</head>
<body>
    {sdcms:include("../sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a> > <a href="./">会员中心</a></div>
    <div class="w980 mt10 mc">
        {sdcms:include("sdcms_menu.asp")}
        <div class="right_big">
            <div class="b">
                <div class="subject">积分明细</div>
                <div class="p12">
                
                    {dim userdata:userdata=sdcms.userinfo}
                    <ul id="onlinepay">
                    {sdcms:rs field="point" table="sd_user" where="id=[userdata(0)]"}
                    <li>可用积分：<span>{$rs[point]}</span>　<a href="exchange.asp">在线兑换</a></li>
                    {/sdcms:rs}
                    </ul>
                    <ul class="user_nav_menu">
                        <li{if v=0} class="hover"{/if}><a href="?">全部</a></li>
                        <li{if v=1} class="hover"{/if}><a href="?v=1">收入</a></li>
                        <li{if v=2} class="hover"{/if}><a href="?v=2">支出</a></li>
                    </ul>
                    <div class="mt10"></div>
                    <table id="tablelist">
                        <tr>
                            <th>名称</th>
                            <th width="80">积分</th>
                            <th width="80">性质</th>
                            <th width="170">日期</th>
                        </tr>
                        {sdcms:rs field="content,point,type,createdate" table="sd_user_point" where="userid=[userdata(0)][sqlwhere]" order="id desc" pagesize="20" isadminurl="0"}
                    {rs:eof}
                    <tr>
                        <td colspan="4" class="item" align="center">没有记录</td>
                    </tr>
                    {/rs:eof}
                    <tr>
                        <td class="item">{$rs[content]}</td>
                        <td align="center">{if $rs[type]=2}-{/if}{$rs[point]}</td>
                        <td align="center"><a href="?v={$rs[type]}">{if $rs[type]=1}收入{else}<span>支出</span>{/if}</a></td>
                        <td align="center">{$rs[createdate]}</td>
                    </tr>
                    {/sdcms:rs}
                    </table>
                    <div class="list_page">{showpage}</div>                
                </div>
            </div>
        </div>
    </div>
    {sdcms:include("../sdcms_foot.asp")}